Skip to main content
Version: 10.x

Type alias: inferReactQueryProcedureOptions<TRouter, TPath>

inferReactQueryProcedureOptions: <TRouter, TPath> { [TKey in keyof TRouter["_def"]["record"]]: TRouter["_def"]["record"][TKey] extends infer TRouterOrProcedure ? TRouterOrProcedure extends AnyRouter ? inferReactQueryProcedureOptions<TRouterOrProcedure, `${TPath}${TKey & string}.`> : TRouterOrProcedure extends AnyMutationProcedure ? InferMutationOptions<TRouterOrProcedure> : TRouterOrProcedure extends AnyQueryProcedure ? InferQueryOptions<TRouterOrProcedure, `${TPath}${TKey & string}`> : never : never }

Type parameters

ParameterDefault
TRouter extends AnyRouter-
TPath extends string""

Source

packages/react-query/src/utils/inferReactQueryProcedure.ts:68


Generated using TypeDoc and typedoc-plugin-markdown